package com.guaoran.other.stategy.pay.bean;

import com.guaoran.other.stategy.pay.interfaces.Payment;
import com.guaoran.other.stategy.pay.interfaces.impl.AiliPay;
import com.guaoran.other.stategy.pay.interfaces.impl.JDPay;

/**
 * @author : 孤傲然
 * @Description :
 * @date :2018/5/17 16:49
 */
public enum PayType {
    JDPay(new JDPay()),
    AiliPay(new AiliPay());
    private Payment payment;
    PayType(Payment payment) {
        this.payment = payment;
    }

    public Payment getPayment() {
        return payment;
    }

    public void setPayment(Payment payment) {
        this.payment = payment;
    }
    public Payment get(){
        return this.payment;
    }
}
